package cn.xianshu;


import cn.xianshu.exception.GlobalExcptionHandler;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

// 管理中心服务
@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients(basePackages = "cn.xianshu.feign.client") // 开启feign
@Import({GlobalExcptionHandler.class})
public class SystemApplication {

    public static void main(String[] args) {
        SpringApplication.run(SystemApplication.class);
    }
}
